package com.guchenbo.springboot.enable;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GcbConfiguration {

    @Bean
    public DemoService demoService(){
        System.out.println("bean");
        return new DemoServiceImpl();
    }

//@Bean
    public GcbBeanBeanDefinitionRegistryPostProcessor postProcessor(){
    return new GcbBeanBeanDefinitionRegistryPostProcessor();
}

//    @Bean
    public GcbBeanBeanDefinitionRegistryPostProcessor2 postProcessor2(){
        return new GcbBeanBeanDefinitionRegistryPostProcessor2();
    }
}
